﻿/* ==============================================================================
 * 功能描述：RoleInfoPanelMagicAttrItem  
 * 
 * 创 建 者：郑镇泉
 * 
 * 创建日期：2016/4/10 19:55:34
 * ==============================================================================*/
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using ZZQFrameWork;

public class RoleInfoPanelMagicAttrItem : MonoBehaviour
{
    public Enum_AttrType magicAttrType;
    public Text valueText;
    private int magicAttrValue;

    public int Value
    {
        get { return magicAttrValue; }
        set
        {
            magicAttrValue = value;
            //Debug.Log(magicAttrValue);
            valueText.text = magicAttrValue.ToString();
        }
    }

    //void Awake()
    //{
    //    valueText = transform.GetComponentByPath<Text>("Value");
    //}
}